<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Login Page</title>
</head>
<body>
	<f:view>
		<h:form id="loginForm">
			<h:panelGrid border="1" columns="3">
				<h:outputText value="username"></h:outputText>
				<h:inputText id="nameFailed" required="true" value="#{dTOUser.name}" validator="#{myLoginController.validateName1}" >
					<f:validateLength minimum="4" maximum="20"></f:validateLength>
				</h:inputText>
				<h:message for="nameFailed"></h:message>
				
				<h:outputText value="password"></h:outputText>
				<h:inputSecret id="passwordFailed" value="#{dTOUser.password}" validator="#{myLoginController.validatePassword1}">
					<f:validateLength minimum="4" maximum="20"></f:validateLength>
				</h:inputSecret>
				
				<h:message for="passwordFailed"></h:message>
			</h:panelGrid> 
			
			<h:commandButton id="submit" value="Login" action="loginHorea.xhtml"></h:commandButton>
		</h:form>
	</f:view>
</body>
</html>